﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Lines
{
    public static class FeatureBLL
    {
        public static int GetFeatureCount(IList<Condition> conditionArray)
        {
            return FeatureDAL.GetFeatureCount(conditionArray);
        }

        public static List<FeatureEntity> GetFeatureList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return FeatureDAL.GetFeatureList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static List<FeatureEntity> GetFeatureList(IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return FeatureDAL.GetFeatureList(conditionArray, sortField, sortMode);
        }

        public static FeatureEntity GetFeature(int featureID)
        {
            return FeatureDAL.GetFeature(featureID);
        }

        public static int InsertFeature(FeatureEntity feature)
        {
            return FeatureDAL.InsertFeature(feature);
        }

        public static int UpdateFeature(FeatureEntity feature)
        {
            return FeatureDAL.UpdateFeature(feature);
        }

        public static int DeleteFeature(int featureID)
        {
            return FeatureDAL.DeleteFeature(featureID);
        }

        public static int SetFeatureEnable(int featureID)
        {
            return FeatureDAL.SetFeatureEnable(featureID);
        }

        public static int HitFeature(int featureID)
        {
            return FeatureDAL.HitFeature(featureID);
        }
    }
}
